home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Paste Exception.5 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  954 b   |  [TEXT/ttxt]

  1. Subject:     Re: Paste Exception
  2. Sent:        6/11/96 12:46 PM
  3. Received:    6/11/96 12:51 PM
  4. From:        Mark Lanett, mlanett@meer.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Alas, OpenDoc does not provide a mechanism to supply user strings with
  9. exceptions. Therefore you have to put up a dialog yourself. You may throw a
  10. non-standard exception only if you catch it later - the SOM interface only
  11. catches subclasses of FW_CODException, and if your exception reaches that
  12. point you will either terminate the process or drop into macsbug.
  13.  
  14. Putting up the dialog at the point where you detect the error may not be
  15. best (especially if you are in the middle of a drag), but I don't know of
  16. any clean way to throw an exception and put up an alert afterwards. Perhaps
  17. you could set something up with idling.
  18.  
  19. markl
  20.  
  21. --
  22. Mark Lanett, OpenDoc Framework, Apple Computer
  23.  
  24.